﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using BUS;
using DataAccess;
namespace QuanLyDiemSV
{
    public partial class KeHoachThi : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["malopdoclap"] != null)
            {
                TextBox1.Text = Session["malopdoclap"].ToString();
                DataTable dt = BUS.XemKeHoachThi.KeHoachThi(Session["malopdoclap"].ToString());
                GridView1.DataSource = dt;
                GridView1.DataBind();
                Session["malopdoclap"] = null;
            }
            else
            {
                
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            DataTable dt = BUS.XemKeHoachThi.KeHoachThi(TextBox1.Text);
            GridView1.DataSource = dt;
            GridView1.DataBind();
        }
    }
}